This business flow is now
available to be used in an app. But how would users add this
business flow to their app? In a previous module, you created a model-driven app. Let's look at how this
business flow could be added to this app for the
benefit of the users. Sign in to Power Apps by using your
organizational account. Click on "Apps" in the
left navigation panel. Locate the model-driven app
in the list of apps provided. Click "More Commands" and
select "Edit" from the menu. In the App Designer window, click on "Business Processes". A list of available
processes will appear in the Components
panel on the right. Untick the all box. The first item in the list
will automatically be ticked. If this is not the new process
you have just created, leave it ticked for now. Locate the new business
flow you have just created, and then tick the box beside it. You can now go back and untick the first process that was
automatically selected. The number on the
Business Processes box on the App Designer screen
should now have changed. In our example, it
changed from all to one. Click on "Save" on the actions bar at the
top of the screen, and then click on "Publish"
to update the app. To see how this process
would look to the user, click on the Play button on the action bar when
it becomes available. When you are on the app screen, click on "New" to
add a new record. The new account
form will open and the assigned credit
limit business flow will automatically be triggered. You will see it as
a progress flow across the top of the form. Type in the account name, which is a required
field and then click on the Check Annual Revenue prompt
at the top of the screen. You might remember
that this is what we call the first
stage in our flow. A Dropbox will appear into which you can enter the
customer's revenue figure. That threshold
figure we said was 100,000 so let's begin
by adding that amount. Click away from the box
and then click on "Save". If you click on the Check
Annual Revenue Stage again, there should now be
a Next Stage button. Once you click on this, the condition in the
business flow will be invoked in the background and the final step to the
right will update to reflect the path that the
business flow has taken. When you click on "Finish", you will see a
message saying that the business flow is complete. Note that the box is saying
set limit to 10,000, which was the required action on the Yes result in the condition. Click on "Save" to add the customer details
to the accounts table. Click on the Back Arrow to return to the list of accounts. Let's add another
customer who has an annual revenue figure
below the cutoff figure. Click on "New" at
the company name. Click on the Check
Annual Revenue Choice in the flow indicator
across the top. When the set income box appears, enter 75000., Click on "Save" on the action bar
at the top of the screen. Click on the Check
Annual Revenue Stage again and click on the
Next Stage button. Notice that in this case, the final step has
resolved to set a credit hold because the customer's income does
not meet the threshold. Manually confirm the hold,
then click "Finish". Now click "Save" and Close. Brilliant, so now you have seen how a business process
flow created in Power Automate can be added to a model-driven app
built-in Power Apps. This will enable
you to implement well-defined business
logic straight into a user-friendly app, which will add another dimension to your business solutions.